package com.hzf.material.dao.model;

import java.io.Serializable;
import java.util.List;

public class MaterialListType implements Serializable {
    /**
     * 商家类型表ID（自增）
     *
     * @mbg.generated
     */
    private Integer marketTypeId;

    /**
     * 类型名称
     *
     * @mbg.generated
     */
    private String marketTypeName;

    /**
     * 图片地址
     *
     * @mbg.generated
     */
    private String imgUrl;

    private List<MaterialList> list;

    /**
     * 备注
     *
     * @mbg.generated
     */
    private String remarks;

    private static final long serialVersionUID = 1L;

    public Integer getMarketTypeId() {
        return marketTypeId;
    }

    public void setMarketTypeId(Integer marketTypeId) {
        this.marketTypeId = marketTypeId;
    }

    public String getMarketTypeName() {
        return marketTypeName;
    }

    public void setMarketTypeName(String marketTypeName) {
        this.marketTypeName = marketTypeName;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public List<MaterialList> getList() {
        return list;
    }

    public void setList(List<MaterialList> list) {
        this.list = list;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", marketTypeId=").append(marketTypeId);
        sb.append(", marketTypeName=").append(marketTypeName);
        sb.append(", imgUrl=").append(imgUrl);
        sb.append(", remarks=").append(remarks);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MaterialListType other = (MaterialListType) that;
        return (this.getMarketTypeId() == null ? other.getMarketTypeId() == null : this.getMarketTypeId().equals(other.getMarketTypeId()))
            && (this.getMarketTypeName() == null ? other.getMarketTypeName() == null : this.getMarketTypeName().equals(other.getMarketTypeName()))
            && (this.getImgUrl() == null ? other.getImgUrl() == null : this.getImgUrl().equals(other.getImgUrl()))
            && (this.getRemarks() == null ? other.getRemarks() == null : this.getRemarks().equals(other.getRemarks()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getMarketTypeId() == null) ? 0 : getMarketTypeId().hashCode());
        result = prime * result + ((getMarketTypeName() == null) ? 0 : getMarketTypeName().hashCode());
        result = prime * result + ((getImgUrl() == null) ? 0 : getImgUrl().hashCode());
        result = prime * result + ((getRemarks() == null) ? 0 : getRemarks().hashCode());
        return result;
    }
}